package javabase.schoolwork.day6_11;

/**
 * @author fance
 * @date 18-6-11 下午5:53
 */
class Base {
    void fun(int price,int... discounts) {
        System.out.println("不建议用 可变参数, 我从不用");
    }
}
class son extends Base {
    @Override
    void fun(int price, int... discounts) {
        System.out.println("son..");
    }
}
public class Test5 {
    static {
        i = 100;
    }
    public static int i = 1;

    public static void main(String[] args) {
        /*Base base = new son();
        base.fun(100,50);

        son son = new son();
        son.fun(100,50);*/
        System.out.println(i);
    }
}
